home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software of the Month Club 1996 April
/
Software of the Month Club 1996 April.iso
/
pc
/
win
/
edu
/
profan2
/
beispiel.lzh
/
BEEP.PRF
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-07-31
|
288 b
|
15 lines
DECLARE A%,OK%,Result!
WHILENOT OK%
LET A%=@INPUT$("Please enter number between 1 an 25:",\
"INPUT",A%)
IF @OR(@Lt(A%,1),@Gt(A%,25))
BEEP
ELSE
LET OK%=1
ENDIF
WEND
LET Result! = @Pow(A%,A%)
DECIMALS 0
@MESSAGEBOX(@Str$(Result!),"RESULT",0)